<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
<title>{{$pageTitle}}-{{$site[title]}}</title>
<meta NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<meta name="Keywords" content="{{if $seokeywords}}{{$seokeywords}}{{else}}{{$site[seokeywords]}}{{/if}}" />
<meta name="Description" content="{{if $seodescription}}{{$seodescription}}{{else}}{{$site[seodescription]}}{{/if}}" />
<meta property="qc:admins" content="23432764476522076741563757" />
<!--[if lt IE 9]>
	{{$this->Html->script(array('html5shiv.js','respond.min.js'))}}
<![endif]-->
{{$this->Html->meta('icon')}}

<link href="/css/bootstrap_2.css" rel="stylesheet" type="text/css" >
{{$this->Html->css(array('font-awesome.min.css','135.css','jquery.jgrowl.css','ui-customer'))}}

{{$this->Html->script(array(
            'jquery/jquery.min.js',
            'jquery/jquery.cookie.js',        
            'i18n/language-zh-cn.js',
            'bootstrap.min.js',
            'jquery/jquery.jgrowl.min.js',
            'common.js','front.js',
            
        ));
}}

<style>
{{if Configure::read('Page.extracss') }}
	{{Configure::read('Page.extracss')}}
{{/if}}
body{min-width: 1200px;background: #e7e8eb;color:#222;font-size: 16px;}
.breadcrumb a{color:#666;}
.btn-primary{background-color: #44b549;border-color:#44b549;}
.btn-primary:hover,.btn-primary:active,.btn-primary:focus {background-color: #2f9833;}
.ui-widget-header, .table thead, div.dataTables_wrapper{background-color:#f4f5f9;color: #222;}
.alert-info {background-color: #f4f5f9;border-color: #e7e7eb;color: #8d8d8d;}
.table > thead > tr > th{border-bottom: 0 none;}
.table > thead:first-child > tr:first-child > th{border-top: 1px solid #dddddd;}
</style>

<!--[if lte IE 8]>
{{$this->Html->css(array(	
	'bootstrap-ie6.css',
))}}
{{$this->Html->script(array('jquery/jquery-migrate-1.2.1.min.js'))}}
<![endif]-->

{{if !empty($_SESSION['Auth']['Staff']) }}
<!-- 当为后台登陆后，才加载jquery ui，与模板编辑的js -->
{{$this->Html->css(array('edit_template',))}}
	
{{$this->Html->script(array(			
            'jquery/jquery-ui-1.10.3.custom.min.js',           
            'portlet.js', 
            'bootstrap-colorpicker.min.js',   
            'ckeditor/ckeditor.js',
            'jquery/validator.js',
            'swfupload/swfupload.js',
            'swfupload/swfupload.queue.js',
			'swfupload/swfupload.cookies.js',
            'swfupload/fileprogress.js',
            'swfupload/handlers.js',       
        ));
}}
<script type="text/javascript">

var viewFileName = "{{$viewfile_for_layout}}";
var current_controller = "{{$current_controller}}";
var current_model = "{{$current_model}}";
var current_url = "{{$current_model}}";
var current_action = "{{$current_action}}";
var current_pass = "{{implode('/',$current_pass)}}";
</script>
{{/if}}
<script type="text/javascript">
var BASEURL = "{{APP_SUB_DIR}}";
var ADMIN_BASEURL = BASEURL+"/manage";
</script>
</head>
<body>

{{template menus/bootstrap}}

<div id="maincontent" class="maincontent clearfix" style="padding: 0 0;margin:36px auto;border: 1px solid #d9dadc;width: 1170px;"> 
	<div class="container">
		<div class="row">			
			<div class="col-sm-12" style="border-left: 1px solid #d9dadc;padding:13px 30px;min-height:1180px;">
		    {{$content_for_layout}}
		    </div>
		</div>
	</div>
</div><!-- //end maincontent -->

{{template Elements/footer}}
